



<?php if (isset($_POST['submit'])):?>

 <?php
     $strChon =$_POST['chon'];
  
   if ($strChon== google.com){
      echo  
       "<script>window.open('https://www.google.com.vn/?gws_rd=cr&ei=azGMUqeCPeiiiAefvIH4Cw','_self')</script>";  }
      
  else if ($strChon == facebook.com) {
            
        echo     "<script>window.open('https://www.facebook.com/nguoilinhvachiecbalo?ref=tn_tnmn','_self')</script>";  }
        
  else if($strChon == lamweb.com){
     echo   "<script>window.open('http://www.lamweb.com/','_self')</script>";}
     
  elseif ($strChon == doahoavn.net){
      
   echo "<script>window.open('http://dohoavn.net/','_self')</script>";}
           
      
 ?>
        
  <?php
     else:
    ?>
        
        
        <html>
    
    
    <body>
    <center>
      <form action="vidu.php" method="Post">
        <h4> hay chon trang web  ban like</h4>
  <select name="chon">
         <option value="google.com"> google.com</option>
          <option value="facebook.com"> facebook</option>
          <option value="lamweb.com"> lamweb.com</option>
          <option value="dohoavn.net">do hoa viet nam</option>
  </select>
           <input type="submit" value="chon trang web" name="submit">
       </form>
        
        
        <?php
    endif;
        ?>
    </center>
   </body>  
</html>